




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：03/02/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.transitiondownlog.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.transitiondownlog.entity.Transitiondownlog;
import com.application.transitiondownlog.struts.form.TransitiondownlogForm;
import com.application.transitiondownlog.dao.TransitiondownlogDAO;
 /**
 * 
 * Description:TransitiondownlogService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 03/02/2012 
 * 
 */
public class TransitiondownlogService extends BaseService
{
	private TransitiondownlogDAO transitiondownlogDAO;

	public TransitiondownlogDAO getTransitiondownlogDAO() {
		return this.transitiondownlogDAO;
	}

	public void setTransitiondownlogDAO(TransitiondownlogDAO transitiondownlogDAO) {
		this.transitiondownlogDAO = transitiondownlogDAO;
	}
        

        public Transitiondownlog getTransitiondownlog(Transitiondownlog transitiondownlog) {
		return (Transitiondownlog) this.getBaseDao().queryByPk(transitiondownlog, transitiondownlog.getId());
	}
	
	public Integer getAllCountTransitiondownlog(TransitiondownlogForm transitiondownlogForm){
		return this.transitiondownlogDAO.getAllCountTransitiondownlog(transitiondownlogForm);
	}
	
	public List<Transitiondownlog> searchTransitiondownlog(TransitiondownlogForm transitiondownlogForm, PageBean pageBean) throws Exception {
		List<Transitiondownlog> transitiondownlogList = (List) this.transitiondownlogDAO.searchTransitiondownlog(transitiondownlogForm, pageBean);
		return transitiondownlogList;
	}
        
        public void deleteTransitiondownlogs(TransitiondownlogForm transitiondownlogForm){
	   this.transitiondownlogDAO.deleteTransitiondownlogs(transitiondownlogForm);	 
	}
}
